
#include "GameState/Tutorial/Tutorial.h"
#include "Engine/Backbone.h"

namespace GameState {

namespace Tutorial {

Tutorial::Tutorial() : 
	Sense("tutorialGameState"),
	Visual("tutorialGameState"),
	tutorialPic("tutorial", "screen/tutorial")  {
	// yea
}

Tutorial::~Tutorial() {
}

// Asks for generation of a graphical model to be displayed
Engine::Resource::GraphicList Tutorial::display() {
	Engine::Resource::GraphicList gfxList;
	gfxList.push_back(&tutorialPic);
	return gfxList;
}

void Tutorial::keyDown(SDLKey sym, SDLMod mod, Uint16 unicode) {
	switch(sym) {
		case SDLK_ESCAPE:
			Engine::Backbone::changeContext("masterGameState");
			break;
		case SDLK_RETURN:
			Engine::Backbone::changeContext("gameplay");
			break;
		default:
			break;
	}
}

Tutorial * Tutorial::singleInstance = NULL; // Single instance of tutorial screen

} // namespace GameState::Tutorial

} // namespace GameState
